Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: client cert decoding is not required #4558

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

iPraveenParihar
Copy link
Contributor

Describe what this PR does

Earlier I had a discussion that Client certificate will be base64 encoded twice and placed into secret.
But that was misunderstood, and its only encoded once. So the extra decoding is not required.
This commit removes the base64 decoding work

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

@iPraveenParihar iPraveenParihar self-assigned this Apr 15, 2024
@mergify mergify bot added the cleanup label Apr 15, 2024
@iPraveenParihar iPraveenParihar marked this pull request as ready for review April 15, 2024 08:47
return nil, fmt.Errorf("failed to decode client certificate: %w", err)
}

kms.clientCertificate = string(clientCertificate)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assignment is not required anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, not required.
assigning it here

err = setConfigString(&kms.clientCertificate, secrets, azureClientCertificate)

@iPraveenParihar iPraveenParihar requested review from Madhu-1 and removed request for sp98 April 15, 2024 11:07
@nixpanic nixpanic added bug Something isn't working backport-to-release-v3.11 Label to backport from devel to release-v3.11 branch labels Apr 15, 2024
@iPraveenParihar
Copy link
Contributor Author

@Mergifyio queue

Copy link
Contributor

mergify bot commented Apr 15, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 29f1fbe

Signed-off-by: Praveen M <m.praveen@ibm.com>
@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Apr 15, 2024
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.28

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Apr 15, 2024
@mergify mergify bot merged commit 29f1fbe into ceph:devel Apr 15, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-release-v3.11 Label to backport from devel to release-v3.11 branch bug Something isn't working cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants